<template>
  <div class="app-container">
    <el-card>
      <div slot="header">
        <span>用户管理</span>
      </div>
      <div class="filter-container">
        <el-button type="primary" @click="handleAdd">新增用户</el-button>
      </div>
      <el-table :data="[]" style="width: 100%">
        <el-table-column prop="username" label="用户名" />
        <el-table-column prop="nickname" label="昵称" />
        <el-table-column prop="role" label="角色" />
        <el-table-column prop="createTime" label="创建时间" />
        <el-table-column label="操作" width="200">
          <template slot-scope="{row}">
            <el-button size="mini" @click="handleEdit(row)">编辑</el-button>
            <el-button size="mini" type="danger" @click="handleDelete(row)">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'User',
  methods: {
    handleAdd() {
      // 处理添加用户
    },
    handleEdit(row) {
      // 处理编辑用户
    },
    handleDelete(row) {
      // 处理删除用户
    }
  }
}
</script>

<style lang="scss" scoped>
.app-container {
  padding: 20px;
  
  .filter-container {
    padding-bottom: 20px;
  }
}
</style> 